import requist from "../../utils/requist";

export const setSongLike = (data) => {
  return requist(`/like?id=${data.id}&like=${data.like}`)
};
export const getSongLikeList = (data) => {
  return requist(`/likelist?uid=${data.uid}`)
};

export const getSongDetail = (data) => {
  return requist(`/song/detail?ids=${data}`)
};
export const getAlbumNewest = () => {
  return requist(`/album/newest`)
};
export const getRecommend = () => {
  return requist(`/recommend/resource`)
};
export const getSublist = () => {
  return requist(`/artist/sublist`)
};
export const getLyric = (data) => {
  return requist(`/lyric?id=${data}`)
};
export const getSongUrl = (data) => {
  return requist(`/song/url?id=${data}`)
};
